var canswf = false; var swfile = 'http://reporting.flymonarch.com/cgi-bin/redshot/norand:' + Math.random() * 99999999 + ',nobook:278417,nofeat:F/'; var swfct = 'http://reporting.flymonarch.com/cgi-bin/redshot/norand:' + Math.random() * 99999999 + ',nobook:278417,nofeat:F,click/';	// flash sniffer
	if (navigator.plugins && navigator.plugins.length) {
		for (x = 0; x < navigator.plugins.length; x++) {
			if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
				canswf = true;
				break;
			}
		}
	}
	else if (window.ActiveXObject) {
		for (x = 10; x >= 2; x--) {
			try {
				flashtest = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");

				if (flashtest) {
					canswf = true;
					break;
				}
			}
			catch (e) {
			}
		}
	}
// if yctred defined then prefix clickthru with it
if (typeof(yctred) == "undefined" ) {
	swfct = escape(swfct);
}
else {
	swfct = yctred.replace(/&/g,"%26") + escape(swfct);
}

// SWF
if (canswf) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" id="REDEYE" width="120" height="600"><param name="movie" value="' + swfile + '?clickTag=' + swfct + '&xmlsrc=http%3A%2F%2Freporting%2Eflymonarch%2Ecom%2Fads%2F278417%2Exml"><param name="quality" value="autohigh"><param name="wmode" value="opaque"><embed src="' + swfile + '?clickTag=' + swfct + '&xmlsrc=http%3A%2F%2Freporting%2Eflymonarch%2Ecom%2Fads%2F278417%2Exml" quality="autohigh" swLiveConnect="true" width="120" height="600" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');
}
// GIF
else {
	document.write('<a target="_blank" href="http://reporting.flymonarch.com/cgi-bin/redshot/nobook:278417,nofeat:G,click/"><img src="http://reporting.flymonarch.com/cgi-bin/redshot/nobook:278417,nofeat:G/" border="0"></a>');
}

